<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<title>商品信息</title>
</head>
<body>

<table cellspacing="0" >
		<thead>
			<tr>
				<th>商品ID</th>
				<th>管理员ID</th>
				<th>商品名称</th>
				<th>尺寸</th>
				<th>种类</th>
				<th>简介</th>
				<th>库存</th>
				<th>状态</th>
				<th>已销售量</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator value="goodsInfolist">
				<tr>
					<td align="right"><s:property value="goodsId" /></td>
					<td align="right"><s:property value="adminId" /></td>
					<td align="right"><s:property value="goodsName" /></td>
					<td align="right"><s:property value="size" /></td>
					<td align="right"><s:property value="kind" /></td>
					<td align="right"><s:property value="introduce" /></td>
					<td align="right"><s:property value="stock" /></td>
					<td align="right"><s:property value="state" /></td>
					<td align="right"><s:property value="totalSales" /></td>
					
					<td><a href="Detailgoods?goodsId=<s:property value="goodsId" />" 
					class="btn btn-warning"> 修改 </a></td>
					
					<td>
					<a onclick="if(confirm('确定删除？'))location.href='Deletegoods?goodsId=<s:property value="goodsId" />'"
					class="btn btn-danger" > 
					删除 
					</a>
					</td>
					
				</tr>
			</s:iterator>
		</tbody>
	</table>
	
	<a href="admins/opGoodsinfo.jsp">添加商品</a>

</body>
</html>